/**
 * 项目示例-列表表头
 * Date 2023-5-25 09:33:56
 * 可选参数可参考：https://element-plus.org/zh-CN/component/table.html#table-column-属性
 */

import type { TableColumnCtx } from 'element-plus'
interface AskListItem {
  askTimeStart?: string[];
  askTimeEnd?: string[];
  askType?: string;
  askContent?: string;
  askTime?: string;
  recorder?: string;
  askRegion?: string;
  recordTime?: string;
  syncTime?: string;
}

export const askColumns = [
  { type: 'index', label: '序号', width: 60, align: 'center' },
  { prop: 'askType', label: '项目类型', minWidth: 130, align: 'center' },
  { prop: 'askContent', label: '项目编号', sortable: true, minWidth: 130, align: 'center' },
  { prop: 'askType', label: '项目单位', minWidth: 130, align: 'center' },
  { prop: 'askType', label: '项目负责人', minWidth: 130, align: 'center' },
  { prop: 'askType', label: '施工单位', minWidth: 130, align: 'center' },
  { prop: 'askType', label: '涉及作业', minWidth: 130, align: 'center' },
  { prop: 'askTime', label: '申请时间', minWidth: 120, sortable: true, align: 'center' },
  {
    prop: 'state', label: '状态', sortable: true, minWidth: 120, align: 'center', ellipsis: true,
    formatter: function (row: any, column: any, cellValue: any) {
      if (row.state == '1') {
        return '使用中'
      } else if (row.state == '2') {
        return '已废弃'
      }
    }
  },
  { prop: 'action', label: '操作', width: 140, align: 'center' }

]
